package com.sciai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sciai.entity.CsvData;
import com.sciai.entity.FilePath;
import com.sciai.entity.Weather;
import com.sciai.entity.WeatherType;
import com.sciai.entity.req.CsvDataReq;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 核心业务表 Mapper 接口
 * </p>
 *
 * @author tqx
 * @since 2023-09-26
 */
@Mapper
public interface WeatherMapper extends BaseMapper<Weather> {

    List<Weather> queryWeather(Map<String, Object> params);

    List<WeatherType> queryWeatherType(Map<String, Object> params);
    List<FilePath> queryFilePath(Map<String, Object> params);

    Page<CsvData> findAllByReq(CsvDataReq csvDataReq);


    List<CsvData> findAllByParams(Map<String, Object> params);
    List<Weather> findAllTypeByParams(Map<String, Object> params);
    List<CsvData> findAllCsvByReq(Map<String, Object> params);
}
